import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class BasicExecuteSQL {

    private Connection connection = null;

    static {
        try{
            Class.forName("");
        }catch (ClassNotFoundException e){
            e.printStackTrace();
        }
    }

    public ResultSet getResultSet(String sql){
        Statement statement = null;
        ResultSet resultSet = null;

        try {
            statement = connection.createStatement();
            resultSet = statement.executeQuery(sql);
        } catch (SQLException e) {
            e.printStackTrace();
        }finally {
            statement = null;
        }
        return resultSet;
    }

}
